Skip to main content
Version: 1.0.2

Get Balance

The Get Balance API fetches the balance amount of an onboarded bank, with detailed breakup of amount received, amount sent, currency code of transactions, net position and upcoming window for next round of transactions.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

id

Mandatory

String

Unique ID for each request

jsonrpc

Mandatory

String

JSON RPC VERSION - should be "2.0"

method

Mandatory

String

Method Name - should be "VisaService.GetBalance"

params

Mandatory

Object

api

Mandatory

Object

credential

Mandatory

String

API credential provided by NetXD

signature

Mandatory

String

Signature of the digitally signed payload

payload

Mandatory

Object


curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"id":"1","jsonrpc":"2.0","method":"VisaService.GetBalance","params":{"api":{"credential":"Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5","signature":"{{signature}}"},"payload":{}}}'

Body


{
"id": "1",
"jsonrpc": "2.0",
"method": "VisaService.GetBalance",
"params": {
"api": {
"credential": "Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5",
"signature": "{{signature}}"
},
"payload": {}
}
}

Response: 201

Response Parameters
ParameterDescription

jsonrpc

String

JSON RPC VERSION - should be "2.0"

result

Object

netPosition

List

asOfDate

String

Net position as on particular date

upcomingWindow

String

Details of upcoming window

netPosition

String

Net position of balance

bankFunds

String

Funds of bank

incomingAmount

String

Amount received from inbound transactions

outgoingAmount

String

Amount received from outbound transactions

currencyAlphaCode

String

Currency code in three characters

asOfDate

String

Net position as on particular date

upcomingWindow

String

Details of upcoming window

netPosition

String

Net position of balance

bankFunds

String

Funds of bank

incomingAmount

String

Amount received from inbound transactions

outgoingAmount

String

Amount received from outbound transactions

currencyAlphaCode

String

Currency code in three characters

asOfDate

String

Net position as on particular date

upcomingWindow

String

Details of upcoming window

netPosition

String

Net position of balance

bankFunds

String

Funds of bank

incomingAmount

String

Amount received from inbound transactions

outgoingAmount

String

Amount received from outbound transactions

currencyAlphaCode

String

Currency code in three characters

id

String

Request Id


{
"jsonrpc": "2.0",
"result": {
"netPosition": [
{
"asOfDate": "2022-02-16 13:06:45 GMT",
"upcomingWindow": "2022-02-16 14:00:00 GMT",
"netPosition": "0",
"bankFunds": "0.00",
"incomingAmount": "0",
"outgoingAmount": "0",
"currencyAlphaCode": "EUR"
},
{
"asOfDate": "2022-02-16 13:06:45 GMT",
"upcomingWindow": "2022-02-16 14:00:00 GMT",
"netPosition": "0",
"bankFunds": "0.00",
"incomingAmount": "0",
"outgoingAmount": "0",
"currencyAlphaCode": "GBP"
},
{
"asOfDate": "2022-02-16 13:06:45 GMT",
"upcomingWindow": "2022-02-16 14:00:00 GMT",
"netPosition": "0",
"bankFunds": "0.00",
"incomingAmount": "0",
"outgoingAmount": "0",
"currencyAlphaCode": "USD"
}
]
},
"id": "1"
}